package com.sdry.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sdry.entity.SysRole;
import com.sdry.mapper.SysRoleMapper;
import com.sdry.service.SysRoleService;

/**
 * @ClassName: SysRoleServiceImpl 
 * @Description:角色管理Service实现
 * @Author hpf
 * @Date 2018年9月27日 下午3:41:06 
 * @version 1.0
 */
@Service
public class SysRoleServiceImpl implements SysRoleService {

	@Resource
	private SysRoleMapper sysRoleMapper;
	
	@Override
	public Integer findCountByName(SysRole sysRole) {
		// TODO Auto-generated method stub
		return sysRoleMapper.findCountByName(sysRole);
	}

	@Override
	public List<SysRole> listPageRole(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return sysRoleMapper.listPageRole(map);
	}

	@Override
	public Integer insertRole(SysRole sysRole) {
		// TODO Auto-generated method stub
		return sysRoleMapper.insertRole(sysRole);
	}

	@Override
	public Integer updateRole(SysRole sysRole) {
		// TODO Auto-generated method stub
		return sysRoleMapper.updateRole(sysRole);
	}

	@Override
	public Integer deleteRole(Long roleID) {
		// TODO Auto-generated method stub
		return sysRoleMapper.deleteRole(roleID);
	}

}
